package com.test.thread.timer;

import java.util.Date;
import java.util.Timer;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		TaskExecutor taskExecutor = new TaskExecutor();
		Timer timer = new Timer();
		timer.schedule(MyTimerTask.getInstance(taskExecutor), 0, 2000);

		System.out.println(new Date(System.currentTimeMillis()) + " started.");
	}

}
